<?php

/**
 * 验证码 独立Session
 *
 * @author Shaun
 */

namespace Utility\Session;

use Zend\Session\Container;

class IdentifyingCode extends Container {

    public $identifying;

    public function __construct() {
        parent::__construct();
        $this->identifying = parent::offsetGet('identifying');
    }

    public function __destruct() {
        if ($this->identifying) {
            $this->identifying = parent::offsetSet('identifying', $this->identifying);
        }
    }

    public function clear() {
        parent::offsetUnset('identifying');
        $this->identifying = null;
    }

}
